From 62db7c8ad10d6c60bc41aef188779a5263a5d90e Mon Sep 17 00:00:00 2001 From: GPSBabel <12013583+GPSBabelDeveloper@users.noreply.github.com> Date: Sun, 14 Apr 2024 03:12:11 -0500 Subject: [PATCH] Add test coverage for ozi color setting options. (#1266) * Unit test ozi color commandline options. Improves test coverage. Co-authored-by: Robert Lipe --- reference/ozi-color.wpt | 13 +++++++++++++ testo.d/ozi.test | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 reference/ozi-color.wpt diff --git a/reference/ozi-color.wpt b/reference/ozi-color.wpt new file mode 100644 index 000000000..bfab3ad7c --- /dev/null +++ b/reference/ozi-color.wpt @@ -0,0 +1,13 @@ +OziExplorer Waypoint File Version 1.1 +WGS 84 +Reserved 2 +Reserved 3 +1,GCEBB,35.972033,-87.134700,,0,1,3,222,255,Mountain Bike Heaven by susy1313,0,0,0,0,6,0,17 +2,GC1A37,36.090683,-86.679550,,0,1,3,222,255,The Troll by a182pilot & Family,0,0,0,0,6,0,17 +3,GC1C2B,35.996267,-86.620117,,0,1,3,222,255,Dive Bomber by JoGPS & family,0,0,0,0,6,0,17 +4,GC25A9,36.038483,-86.648617,,0,1,3,222,255,FOSTER by JoGPS & Family,0,0,0,0,6,0,17 +5,GC2723,36.112183,-86.741767,,0,1,3,222,255,Logan Lighthouse by JoGps & Family,0,0,0,0,6,0,17 +6,GC2B71,36.064083,-86.790517,,0,1,3,222,255,Ganier Cache by Susy1313,0,0,0,0,6,0,17 +7,GC309F,36.087767,-86.809733,,0,1,3,222,255,Shy's Hill by FireFighterEng33,0,0,0,0,6,0,17 +8,GC317A,36.057500,-86.892000,,0,1,3,222,255,GittyUp by JoGPS / Warner Parks,0,0,0,0,6,0,17 +9,GC317D,36.082800,-86.867283,,0,1,3,222,255,Inlighting by JoGPS / Warner Parks,0,0,0,0,6,0,17 diff --git a/testo.d/ozi.test b/testo.d/ozi.test index 51903441d..1a94e465e 100644 --- a/testo.d/ozi.test +++ b/testo.d/ozi.test @@ -5,6 +5,10 @@ gpsbabel -i ozi -f ${REFERENCE}/ozi.wpt -o ozi -F ${TMPDIR}/oz.wpt gpsbabel -i ozi -f ${TMPDIR}/oz.wpt -o ozi -F ${TMPDIR}/ozi.wpt compare ${TMPDIR}/ozi.wpt ${REFERENCE} +# Same, but with colors set +gpsbabel -i geo -f ${REFERENCE}/geocaching.loc -o ozi,wptfgcolor=#de0000,wptbgcolor=red -F ${TMPDIR}/ozi-color.wpt +compare ${TMPDIR}/ozi-color.wpt ${REFERENCE} + # Test Ozi routes. gpsbabel -i ozi -f ${REFERENCE}/route/ozi.rte -o gpx -F ${TMPDIR}/ozi~gpx.gpx compare ${TMPDIR}/ozi~gpx.gpx ${REFERENCE}/route/ -- 2.30.2